/*

   main program

*/

bool VERBOSE = 0;


#include <TerrainGuarding.h>

bool PARALLEL;
bool USE_THRDS = 1;



int main(int argc, char** argv)
{
	std::string input_file_path;
	std::string method;
	short num_args=0;
	dreal eps;
	
	
	

	if(argc>1) 
	{
		for(int i=0;i<argc;i++)
		{

		 if(strcmp(argv[i],"-ILP")==0) { input_file_path = std::string(argv[i+1]); num_args++; }
		 if(strcmp(argv[i],"-eps")==0) { eps = atof(argv[i+1]); num_args++; }
		 if(strcmp(argv[i],"-method")==0) {method = std::string(argv[i+1]); num_args++; }
		 
		}
		if(num_args!=3) {std::cout << "missing argument: \n  usage: main -ILP|GEOMETRIC <filename> -eps <eps> -method <parallel|sequential>." << std::endl; exit(1);}
	}
	   PARALLEL = (method==std::string("parallel")) ? 1 : 0;

	   std::cout << "\n\n\n" << std::endl;
	   std::cout << "----------> TEST input: " << input_file_path << "<------------" <<std::endl;
	   TGInstance T(input_file_path,ILP);
           TGSolver TG_sol(T,eps);

	
     return 1;
	
	
      
		
}

